Page({
  data: {
    followList: [
     
      // 可以添加更多的狗狗信息
    ],
  },

 async  delFollow(e){
const item =e.currentTarget.dataset.item
const res = await getApp().$request('/api/delFollow','POST',{dogId:item.dogId,userId:wx.getStorageSync('user').id})
wx.showToast({
  title: '取关成功',
})
this.getList()
  },

  navTo(e){
    const item =e.currentTarget.dataset.item
    wx.navigateTo({
      url: '/pages/dogDetail/dogDetail?dogId='+item.dogId,
    })
  },
  onLoad(){
    this.getList()
  },
  async getList(){
    const res = await getApp().$request('/api/getFollowList','POST',{userId:wx.getStorageSync('user').id})
    this.setData({
      followList:res.data
    }
      )
  }
});
